<template>
  <div id="app">
    <el-form label-width="100px">

      <el-form-item label="充值金额">
        <el-input v-model="money" type="text"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click.prevent="test">确认</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
  export default {
    data(){
      return {
        money:"",
        id:this.$route.query.id
      }
    },
    methods:{
      test(){
        this.$confirm("是否确认充值","保存提示").then(()=>{
          this.axios.put("/member/chongzhi?id="+this.id+"&money="+this.money).then((resp)=>{
            this.$message.success("保存成功！");
            this.$router.push("/member/MemberList");
          });
        });

      }
    }
  }
</script>


<style scoped>

</style>
